<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='animate.min.css') }}">
    <title>抠图服务</title>
</head>
<header>
    <div class="hub__navbar" style="display: flex;justify-content: space-between;">
        <a class="logo" href="/" style="margin:68px 0 0 20px;font-size: 38px;"><img src="../static/images/logo.png"
                                                                                    height="88" width="88"
                                                                                    style="margin-right: 20px;" alt="">湖南涉外经济学院</a>
        <div style="display: flex;margin: 20px 20px -20px 0;">
            <a class="hub__nav__link active" href="koutu" style="font-size: 26px !important;">抠图服务</a>
            <a class="hub__nav__link" href="zhengjianzhao" style="font-size: 26px !important;">证件照服务</a>
            <a class="hub__nav__link" href="yanzhi" style="font-size: 26px !important;">颜值服务</a>
            <a class="hub__nav__link" href="ocr" style="font-size: 26px !important;">OCR服务</a>
            <a class="hub__nav__link" href="ernie_vilg" style="font-size: 26px !important;">图像生成服务</a>
        </div>
    </div>
</header>

<body>
<main class="">
    <div class="hub__container d-f x-center y-center" style="margin-top: -75px;">
        <div class="banner animate__animated animate__slideInUp">
            <p><img src="../static/images/logo1.png" height="168" width="168" alt=""></p>
            <h1 style="font-weight: bold;font-size: 108px;">人像抠图服务</h1>
            <h2 style="line-height: 1.5;">你可以上传照片，实现快速人像抠图</h2>

            <div style="display: flex;align-items: center;justify-content: center;">
                {#            <form style="margin-top: 20px;margin-right: 20px" id="myform1" action="/koutu" enctype='multipart/form-data'#}
                {#                  method='POST'#}
                {#                  style="line-height:1;">#}
                {#                <!-- onclick='LimitAttach(this.form, this.form.file.value);' -->#}
                {#                <input type="file" id="file1" name="file1" style="opacity: 0;position: absolute;" multiple>#}
                {#                <div class="start" style="width: 160px;font-size: 18px" onclick="selectInput()">抠图</div>#}
                {#            </form>#}
                <form name="name11" id="myform2" action="/koutu" enctype='multipart/form-data' method='POST'
                      style="line-height:1;margin-right: 20px">
                    <!-- onclick='LimitAttach(this.form, this.form.file.value);' -->
                    <input type="file" id="file2" name="file2" style="opacity: 0;position: absolute;">
                    <div class="start" onclick="selectInput(2)" style="width: 160px;font-size: 18px">在线抠图</div>
                </form>
                <form name="name22" id="myform" action="/koutu_p" enctype='multipart/form-data' method='POST'
                      style="line-height:1;">
                    <!-- onclick='LimitAttach(this.form, this.form.file.value);' -->
                    <input type="file" id="file" name="file" style="opacity: 0;position: absolute;" multiple
                           webkitdirectory>
                    <div class="start" style="width: 160px;font-size: 18px" onclick="selectInput(1)">批量抠图</div>
                </form>

            </div>

            {% if wenjinmin %}

                <a style="color: #000;width: 160px !important;margin-top: 50px;height: 36px;display: inline-block"
                   href="/download/{{ wenjinmin }}">
                    <div style="width: 160px !important;height: 36px;line-height: 36px;text-align: center;font-size: 18px;border-radius: 18px;"
                         class="start">点击下载
                    </div>
                </a>
                {#                <div onclick="downloadDir('{{ lujin }}')">点击</div>#}
            {% else %}
            {% endif %}
        </div>
    </div>
    <div class="d-n" id="result">
        <div class="imgbox">
            <img class="result-img" src="{{ sourcefile }}" alt=""/>
            <a href="{{ filename }}" download="mypic.jpg">
                <img class="result-img" src="{{ filename }}" alt=""/>
            </a>
        </div>
    </div>
    <footer>
        <p class="animate__slideInUp" style="font-size: 24px;">author: <strong>湖南涉外经济学院信息与机电工程学院</strong></p>
        <div id="gotop">
            <img src="../static/images/arrow-up.png" alt="">
        </div>
    </footer>
</main>
<script src="../static/index.js"></script>
{% extends "bootstrap/base.html" %}
{% block content %} {% endblock %}
{% block myjs %} {% endblock %}

</body>

</html>
